package com.neusoft.lohas.common.restTemplate.api;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

import com.neusoft.lohas.common.restTemplate.client.ResourceEnum;
import com.neusoft.lohas.common.restTemplate.client.ResourceHandleResult;
import com.neusoft.lohas.common.restTemplate.client.ResourceHandleType;
import com.neusoft.lohas.common.restTemplate.client.ServerApi;

@Service
@Transactional(readOnly = true)
public class UpdateIeventAPI {

	/**
	 * 判断活动主题是否存在
	 * @param actSubject
	 * @return
	 */
	public String updateScanType(String mobileNo, int type) {
		MultiValueMap<String, Object> param = new LinkedMultiValueMap<String, Object>();
		param.add("mobileNo", mobileNo);
		param.add("type", type);
		ResourceHandleResult<String> result = ServerApi.getInstance()
				.remoteResourceHandle(param, ResourceHandleType.POST,
						ResourceEnum.UPDATE_SCAN_TYPE, String.class, null);
		return result.getResourceEntity();
	}
	
}
